/**
 * 代号:隐无为 2017：厚溥
 * 文件名：StreetServiceImpl.java
 * 创建人：柯栋
 * 日期：2017年10月25日
 * 修改人：
 * 描述：
 */
package org.setone.service.impl;

import java.util.List;

import org.setone.dao.StreetDao;
import org.setone.model.PageBean;
import org.setone.model.Street;
import org.setone.service.StreetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用途：用户模块业务逻辑层
 */
@Service
public class StreetServiceImpl  implements StreetService{

	@Autowired
	StreetDao streetDao;
	
	@Override
	public List<Street> queryAll() {
		return streetDao.queryAll();
	}

	@Override
	public Street queryById(Integer id) {
		return streetDao.queryById(id);
	}

	@Override
	public void save(Street street) {
		streetDao.save(street);
	}

	@Override
	public void delete(Integer id) {
		streetDao.delete(id);
	}

	@Override
	public void update(Street street) {
		streetDao.update(street);
	}


	@Override
	public PageBean<Street> queryPageList(Integer pageNum, Integer pageSize) {
		return streetDao.queryPageList(pageNum, pageSize);
	}

	@Override
	public List queryByHouseId(String id) {
		// TODO Auto-generated method stub
		return streetDao.queryByHouseId(id);
	}

	
}
